<template>
<div>

	<flexbox class="pt10 pb10 bgwhite mb10" :gutter="0" orient="vertical">

		<flexbox-item >
			<div class="text-center h1 mt50">
				绑定成功
			</div>
		</flexbox-item>

		<flexbox-item class="userinfo mt20">
			<div class="text-center">
				<img class="headerimg " :src="userdata.headimgurl">
				<div class="h1">
					{{userdata.nickname}} 
				</div>
			</div>
		</flexbox-item>


		<flexbox-item class="mt20">
			<yd-button size="large" type="primary" 
			@click.native="ok">确定</yd-button>

		</flexbox-item>

	</flexbox>
	
	


</div>
  		
</template>

<script>

import { mapGetters } from 'vuex';
import wx from '../../util/weixin';

export default {
	name: 'bindsuccess',
	
	data () {
		return {
		  	
		}
	},

	components: {

		
	},

	computed : {
		...mapGetters([
			'company_code', 
			'userdata',
		]),
	},

	methods : {
		ok () {

			const para = {
				fun : 'setregistersuccess',
				cb : res => {
					console.log(res);
					wx.closeWindow();
				}
			};

			this.$store.dispatch('update', para);

		}
	},

	watch:{
	    
	},

	mounted () {
		
		
	},

}
</script>

<style scoped>
.userinfo {
	height: 150px;
}
.userinfo .headerimg {
	border-radius:50%;
	width: 80px;
	height: 80px;
	margin-top: 20px;
}

.userinfo .name {
	margin-top: 10px;
	/*color: #fff;*/
}
</style>
